import request from '@/utils/request'

// 查询教案检查评价列表
export function listTeachPlanItems(query) {
  return request({
    url: '/course/teachPlanItems/list',
    method: 'get',
    params: query
  })
}

// 查询教案检查评价详细
export function getTeachPlanItems(id) {
  return request({
    url: '/course/teachPlanItems/' + id,
    method: 'get'
  })
}

// 新增教案检查评价
export function addTeachPlanItems(data) {
  return request({
    url: '/course/teachPlanItems',
    method: 'post',
    data: data
  })
}

// 修改教案检查评价
export function updateTeachPlanItems(data) {
  return request({
    url: '/course/teachPlanItems',
    method: 'put',
    data: data
  })
}

// 删除教案检查评价
export function delTeachPlanItems(id) {
  return request({
    url: '/course/teachPlanItems/' + id,
    method: 'delete'
  })
}

// 获取当前课类型的教案检查评价表
export function getTeachPlanItem(typeNum) {
  return request({
    url: '/course/teachPlanItems/item/' + typeNum,
    method: 'get'
  })
}

// 添加教案评价
export function addTeachPlanEval(data) {
  return request({
    url: '/course/teachPlanItems/addTeachPlanEval',
    method: 'post',
    data: data
  })
}
